package day6.enumtest;

/**
 * @author joker
 * @date 2022/4/16 0016 - 18:39
 */
public enum Season {
    SPRING(1,"春天"),
    SUMMER(2,"夏天"),
    AUTUMN(3,"秋天"),
    WINTER(4,"冬天");
    private final int num;
    private final String desc;

    private Season(int num, String desc) {
        this.num = num;
        this.desc = desc;
    }

    public int getNum() {
        return num;
    }

    public String getDesc() {
        return desc;
    }}
